<div class="container">
    <form id="register-form" action="/site/register" method="post" class="form-horizontal">
        <input type="hidden" name="<?=$this->security->getTokenKey()?>" value="<?=$this->security->getToken()?>">
        <div class="form-group">
            <label for="username-id" class="col-sm-2 control-label"></label>
            <div class="col-sm-3">
                <p class="text-danger"><?=$error;?></p>
            </div>
        </div>
        <div class="form-group">
            <label for="username-id" class="col-sm-2 control-label">UserName</label>
            <div class="col-sm-3">
                <input required type="text" class="form-control" id="username-id" name="username" placeholder="please input your username">
            </div>
        </div>
        <div class="form-group">
            <label for="email-id" class="col-sm-2 control-label">Email</label>
            <div class="col-sm-3">
                <input required type="email" class="form-control" id="email-id" name="email" placeholder="please input your email">
            </div>
        </div>
        <div class="form-group">
            <label for="password-id" class="col-sm-2 control-label">Password</label>
            <div class="col-sm-3">
                <input type="password" class="form-control" id="password-id" name="password" required placeholder="input your password">
            </div>
        </div>
        <div class="form-group">
            <label for="password-confirm-id" class="col-sm-2 control-label">Confirm Password</label>
            <div class="col-sm-3">
                <input type="password" class="form-control" id="password-confirm-id" required placeholder="confirm your password">
            </div>
        </div>
        <div class="form-group">
            <label for="button-id" class="col-sm-2 control-label"></label>
            <div class="col-sm-3">
                <button id="button-id" class="btn btn-primary btn-block" type="submit">Register</button>
            </div>
        </div>
    </form>
</div>